a1fb921999bb07bf0fe30734fa97115f7bc8d092,community/src/java/org/neo4j/impl/transaction/xaframework/XaLogicalLog.java,XaLogicalLog,close,#,890

Before Change


            renameCurrentLogFileAndIncrementVersion( fileName + "." + 
                currentLog, endPosition );
        }
        setActiveLog( CLEAN );
    }

    private void doInternalRecovery( String logFileName ) throws IOException

After Change


        }
        if ( !keepLogs || backupSlave )
        {
            if ( currentLog == CLEAN )
            {
                // special case going from old xa version with no log rotation
                // and we started with a recovery
                deleteCurrentLogFile( fileName );
            }
            else
            {
                deleteCurrentLogFile( fileName + "." + currentLog );
            }
        }
        else
        {
            renameCurrentLogFileAndIncrementVersion( fileName + "." + 
                currentLog, endPosition );
        }
        if ( currentLog != CLEAN ) // again special case, see above
        {
            setActiveLog( CLEAN );
        }
    }